/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hutech09.jsale.bsn;

import java.util.List;
import java.util.Map;
import javax.ejb.Local;
import org.hutech09.jsale.bsn.exception.ItemExistsException;
import org.hutech09.jsale.bsn.exception.ItemNotFoundException;
import org.hutech09.jsale.entity.Customer;

/**
 *
 * @author Nam
 */
@Local
public interface ICustomerManager {

    public Customer create(Customer customer) throws ItemExistsException;

    public Customer update(Customer customer) throws ItemNotFoundException;

    public Customer delete(Customer customer) throws ItemNotFoundException;
    
    public List<Customer> findPaging(int first, int pageSize, String orderBy, boolean desc, Map<String, String> filter);
    
    public long count(Map<String, String> filter);

    public Customer find(String rowKey);
    
    public void sendMyMail();
}
